The inverse of the
alfainv(x, a, h = TRUE)
A matrix with Euclidean data. However, they must lie within the feasible, acceptable space. See references for more information.
The value of the power transformation, it has to be between -1 and 1. If zero values are present it has to be greater than 0. If
If h = TRUE this means that the multiplication with the Helmer sub-matrix will take place. It is set to TRUe by default.
A matrix with the pairwise distances.
The inverse of the
Tsagris M.T., Preston S. and Wood A.T.A. (2016). Improved classification for compositional data using the
Tsagris M.T., Preston S. and Wood A.T.A. (2011). A data-based power transformation for compositional data. In Proceedings of the 4th Compositional Data Analysis Workshop, Girona, Spain. https://arxiv.org/pdf/1106.1451.pdf
# NOT RUN {
library(MASS)
x <- as.matrix(fgl[1:10, 2:9])
x <- x / rowSums(x)
y <- alfa(x, 0.5)$aff
alfainv(y, 0.5)
# }
Run the code above in your browser using DataLab